package org.galaxyworld.flycode.core;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class MainRunner implements CommandLineRunner {

    @Resource
    private JobExecutor jobExecutor;

    @Override
    public void run(String... args) throws Exception {
        jobExecutor.start();
    }
}
